<?php

namespace Modules\Admin\Http\Controllers\Admin;

use App\Http\Controllers\Admin\ApiController;
use Illuminate\Http\Request;

class ConfigController extends ApiController
{
    protected ?array $except = ['login'];

    /**
     * 说明：
     *
     * @param type
     *
     * @return
     * @author  daixinguo (daixinguo57@163.com)
     */
    public function login(Request $request)
    {
        $data = [
            'system_name' => env('APP_NAME'),
            'title' => env('APP_TITLE'),
            'copy_right' => env('COPY_RIGHT'),
            'ICP' => env('ICP'),
            'login_captcha' => env("LOGIN_CAPTCHA", false)
        ];
        return $this->success($data);
    }
}
